"=============================================================================
" vimrc --- Entry file for vim
" Copyright (c) 2016-2017 Shidong Wang & Contributors
" Author: Shidong Wang < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================

" Note: Skip initialization for vim-tiny or vim-small.
if 1
    execute 'source' fnamemodify(expand('<sfile>'), ':h').'/config/main.vim'
endif
" vim:set et sw=2

map <leader>tw1 :set tabstop=1 shiftwidth=1 softtabstop=1<cr>
map <leader>tw2 :set tabstop=2 shiftwidth=2 softtabstop=2<cr>
map <leader>tw4 :set tabstop=4 shiftwidth=4 softtabstop=4<cr>
map <leader>tw8 :set tabstop=8 shiftwidth=8 softtabstop=8<cr>


autocmd Filetype c inoremap {<cr>  {<cr>};<esc>O
autocmd Filetype cc inoremap {<cr>  {<cr>};<esc>O
autocmd Filetype cpp inoremap {<cr>  {<cr>};<esc>O
autocmd Filetype h inoremap {<cr>  {<cr>};<esc>O
autocmd Filetype hpp inoremap {<cr>  {<cr>};<esc>O




